/**  File: displaybar.h
 *   Author: Jaideep Balekar
 *           Department of Computer Science
 *           Texas A&M University
 *           315 - Programming Studio
 * Due Date: December 6th, 2009 @ 11:59
 * Contents: This class builds and shows the display bar on the GUI window. It displays the player score, level and lives left.
 */
 
#ifndef DISPLAYBAR_H
#define DISPLAYBAR_H

#include <QGraphicsScene>
#include <QGraphicsView>
#include <QPainter>
#include <QStyleOption>
#include <QLCDNumber>
#include <QLabel>
#include <QPushButton>
#include <QLCDNumber>

static QLCDNumber *score;
static QLCDNumber *life;
static QLCDNumber *level;

class DisplayBar : public QWidget
{
    Q_OBJECT
    public:
        //constructor
        DisplayBar( QWidget *parent=0);
        static void updateScore(int);
        static void updateLevel(int);
        static void updateLives(int);

    private:
    //member variables
        QGraphicsScene scene;
        QGraphicsView view;
        void decrementLife();
        void addScorePoint();
        QLabel lifeLabel;
        QLabel scoreLabel;
        QLabel levelLabel;
        QPushButton quitButton;
};
#endif
